<?php

namespace App\Http\Resources\Article;

use App\Http\Resources\BaseResource;
use App\Models\Article\ArticleModel;
use Illuminate\Http\Resources\MissingValue;

class HotArticleCategoryListResource extends BaseResource
{
    public function toArray($request): array
    {
        return
            [
                "showNum"        => $this->showNum,
                "categoryDetail" => ArticleCategoryListResource::collection([$this->articleCategoryRel])
                                                               ->getIterator()
                                                               ->current()
            ];
    }
}
